package org.jeecg.modules.basesource.service;

import com.github.jeffreyning.mybatisplus.service.IMppService;
import org.jeecg.modules.basesource.entity.SbCwbbBw;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.sssj.vo.CwbbSssjVo;

import java.util.List;

/**
 * @Description: 财务报表报文
 * @Author: jeecg-boot
 * @Date:   2022-03-03
 * @Version: V1.0
 */
public interface ISbCwbbBwService extends IMppService<SbCwbbBw> {

    /**
     * 根据复合主键查询
     * @param tynsrsbh
     * @param ssqq
     * @param ssqz
     * @return
     */
    SbCwbbBw getByCompositePk(String tynsrsbh, String ssqq, String ssqz);

    /**
     * 根据年份查询财报
     * @param tynsrsbh
     * @param year
     * @return
     */
    List<SbCwbbBw> getByYear(String tynsrsbh, String year);

    /**
     * 查询财报季报信息
     * @param tynsrsbh
     * @param ssqq
     * @param ssqz
     * @return
     */
    CwbbSssjVo getCwbbSssj(String tynsrsbh, String ssqq, String ssqz);

    /**
     * 查询最大的季度所属期
     * @param tynsrsbh
     * @return
     */
    String getMaxJbSsqByNsr(String tynsrsbh);

    String getMaxNbSsqByNsr(String tynsrsbh);
}
